package com.ad.common.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author: megan
 * @Data: 2019-03-03 11:31
 * @Description: 统一响应
 */
@Data
public class CommonResponse<T> implements Serializable {
    private Integer code;
    private String message;
    private T data;

    public CommonResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public CommonResponse() {
    }

    public CommonResponse(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
